import request from '@/utils/request';

export function apiCouponAdd(data) {
  return request({
    url: '/admin/coupon/add',
    method: 'post',
    data
  });
}

export function apiCouponEdit(data) {
  return request({
    url: '/admin/coupon/edit',
    method: 'post',
    data
  });
}

export function apiCouponList(data) {
  return request({
    url: '/admin/coupon/list',
    method: 'post',
    data
  });
}

export function apiCouponDel(data) {
  return request({
    url: '/admin/coupon/del',
    method: 'post',
    data
  });
}

export function apiCouponAll(data) {
  return request({
    url: '/admin/coupon/all',
    method: 'post',
    data
  });
}
